<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="jquery-3.5.1.min.js"></script>
    <script>
        function zz() {
        $.ajax("text.json",{
            type:"pose",
            data:{
                "id":"001",
                "name":"壹",
                "age":"20"
            },
            success:function () {
            console.log("成功")
            },
            error:function () {
            console.log("失败")
            }
        })
        }
    </script>
</head>
<body>
<a onclick="zz()">查询用户</a>



</body>
</html>